﻿using System;

namespace SBPweb.Modules.Communication
{

	/// <summary>
	/// Interface for request message
	/// </summary>
	/// <typeparam name="T"></typeparam>
	public interface IRequestMessage<T> : IMessage
    {

		/// <summary>
		/// Response for request
		/// </summary>
        T Response
        {
            get;
            set;
        }

		/// <summary>
		/// Event for response
		/// </summary>
        event EventHandler<RequestMessageEventArgs<T>> Respond;

    }
}